<?php
/**
{
    "schoolBrandId": "INT //品牌id@search; ",
    "brandName": "VARCHAR //品牌全称@search; ",
    "brandAbbr": "VARCHAR //品牌简称@search; ",
    "schoolId": "INT //机构@foreign::tbl_school; @search; ",
    "schoolTypeId": "INT //机构性质@foreign::tbl_school_type; @search; ",
    "status": "INT //状态@status::3::正常::@admin; 88::删除::@admin; @search; "
}
 */

class SchoolBrand extends Base
{
    
	public $schoolBrandId= '';//品牌id@search;
	public $brandName= NULL;//品牌全称@search;
	public $brandAbbr= NULL;//品牌简称@search;
	public $schoolId= "0";//机构@foreign::tbl_school;@search;
	public $schoolTypeId= "0";//机构性质@foreign::tbl_school_type;@search;
	public $status= "3";//状态@status::3::正常::@admin;88::删除::@admin;@search;

    public $isDbData = false;

    public function __construct()
    {
        parent::__construct();
    }


    public function __get($name) {
        return $this->$name;
    }

    public function __set($name, $value) {
        if(!$this->isDbData){
            if(!in_array($name,$this->loadedFiled))$this->loadedFiled[] = $name;
        }

        $this->$name=$value;
        $this->arr[$name] = $value;
    }

    public  function table()
    {
        return 'tbl_school_brand';
    }
    
    public  function key(){
        return 'schoolBrandId';
    }


    
    public static  function hideField()
    {
        return [];
    }
            
    public static  function skipField()
    {
        return [];
    }
            
    public static  function noViewField()
    {
        return [];
    }
            
    public static  function jsonField()
    {
        return [];
    }
            
    public static  function noLoadField()
    {
        return [];
    }
            
    public static  function deleteField()
    {
        return [];
    }
            
    public function className()
    {
        return 'SchoolBrand';
    }
    
    public  function field()
    {
        return array (  'schoolBrandId' =>   array (    0 => 'INT',    1 => 11,    2 => '品牌id@search;',  ),  'brandName' =>   array (    0 => 'VARCHAR',    1 => 100,    2 => '品牌全称@search;',  ),  'brandAbbr' =>   array (    0 => 'VARCHAR',    1 => 50,    2 => '品牌简称@search;',  ),  'schoolId' =>   array (    0 => 'INT',    1 => 11,    2 => '机构@foreign::tbl_school;@search;',  ),  'schoolTypeId' =>   array (    0 => 'INT',    1 => 11,    2 => '机构性质@foreign::tbl_school_type;@search;',  ),  'status' =>   array (    0 => 'INT',    1 => 11,    2 => '状态@status::3::正常::@admin;88::删除::@admin;@search;',  ),);
    }


}